#include <unistd.h>

class NetTools
{
private:
    /* data */
public:
    NetTools(/* args */);
    ~NetTools();
    ssize_t dispatch(int socket, const char *ptr, size_t size, int flags);
    ssize_t receive(int socket, char *ptr, size_t size, int flags);
    void closeSocket(int &socket);
};


